import request from '@/utils/request'

export function getPropertyList(query) {
  return request({
    url: '/knowledge/admin/property/getList',
    method: 'post',
    data: query
  })
}

export function saveProperty(query) {
  return request({
    url: '/knowledge/admin/property/save',
    method: 'post',
    data: query
  })
}

export function removeProperty(query) {
  return request({
    url: '/knowledge/admin/property/remove',
    method: 'post',
    data: query
  })
}
export function getPropertyDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/knowledge/admin/property/info/0',
    method: 'get',
    data: query
  })
}